'''
Created on 2024年7月27日

@author: Administrator
'''
import matplotlib.pyplot as plt

plt.style.use('seaborn')

x_values = range(1,1001) #[1,2,3,4,5]
y_values = [x**2 for x in x_values] #[1,4,9,16,25]

fig,ax = plt.subplots()
# ax.scatter(x_values,y_values,color='red',s=10)
ax.scatter(x_values,y_values,c=y_values,cmap=plt.cm.Blues,s=10)

ax.set_title("Squares Numbers",fontsize=24)
ax.set_xlabel("Value",fontsize=14)
ax.set_ylabel("Square of Value",fontsize=14)


ax.axis([0,1100,0,1_100_000])
ax.ticklabel_format(style='plain')

plt.savefig('squares_plot.png',bbox_inches='tight')

plt.show()